package com.sjtu.rental.entity;


/**
 * ShowingRecord entity. @author MyEclipse Persistence Tools
 */

public class ShowingRecord implements java.io.Serializable {

	public static final int REQUEST_APPOINTMENT = 0;
	public static final int AGREE_APPOINTMENT = 1;
	public static final int DENY_APPOINTMENT = 2;
	public static final int FINISH_APPOINTMENT = 3;
	
	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 5158851919466708752L;
	private Long id;
	private Long houseId;
	private Long uiId;
	private String showingDate;
	private String contactTime;
	private String remark;
	private Integer state;
	
	private House house;
	private UserInfo user;

	// Constructors

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}

	public House getHouse() {
		return house;
	}

	public void setHouse(House house) {
		this.house = house;
	}

	/** default constructor */
	public ShowingRecord() {
	}

	/** full constructor */
	public ShowingRecord(Long houseId, Long uiId, String showingDate,
			String contactTime, String remark, Integer state) {
		this.houseId = houseId;
		this.uiId = uiId;
		this.showingDate = showingDate;
		this.contactTime = contactTime;
		this.remark = remark;
		this.state = state;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHouseId() {
		return this.houseId;
	}

	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}

	public Long getUiId() {
		return this.uiId;
	}

	public void setUiId(Long uiId) {
		this.uiId = uiId;
	}

	public String getShowingDate() {
		return this.showingDate;
	}

	public void setShowingDate(String showingDate) {
		this.showingDate = showingDate;
	}

	public String getContactTime() {
		return this.contactTime;
	}

	public void setContactTime(String contactTime) {
		this.contactTime = contactTime;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

}